package com.study.sfd.prescription.feign;

import com.study.common.utils.PageResult;
import com.study.common.utils.Result;
import com.study.common.vo.MedicineDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("medicine")
public interface MedicineService
{
    @GetMapping("/medicine/medicine/listWithCover")
    Result<PageResult> listMedicines(@RequestParam Map<String, Object> params);

    @GetMapping("medicine/medicine/{medicineId}")
    Result<MedicineDetail> getMedicineById(@PathVariable("medicineId") Integer medicineId);
}
